@extends('admin.base.parent')
@section('content')
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">主页</a>
							</li>
							<li>
								<a href="#">友情链接管理</a>
							</li>
							<li class="active">添加友情链接</li>
						</ul><!-- .breadcrumb -->

					        @if (count($errors) > 0)
					            <div class="alert alert-danger">
					                <ul>
					                    @foreach ($errors->all() as $error)
					                        <li>{{ $error }}</li>
					                    @endforeach
					                </ul>
					            </div>
					        @endif


						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="查找" class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- #nav-search -->
					</div>

					<div class="page-content">
						<div class="page-header">
							<h1>
								添加友情链接
								<small>
									<i class="icon-double-angle-right"></i>
									友情链接
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<form class="form-horizontal" role="form" action="{{ url('admin/flink') }}" method='post' enctype='multipart/form-data'>
									{{ csrf_field() }}
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 网站名称 </label>

										<div class="col-sm-9">
											<input type="text" name='webname' id="form-field-1" placeholder="网站名称" class="col-xs-10 col-sm-5" />
										</div>
									</div>

									<div class="space-4"></div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 网站url </label>

										<div class="col-sm-9">
											<input type="text" name='url' id="form-field-1" placeholder="网站url" class="col-xs-10 col-sm-5" />
										</div>
									</div>

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 联系人名字 </label>

										<div class="col-sm-9">
											<input type="text" name='rname' id="form-field-1" placeholder="name" class="col-xs-10 col-sm-5" />
										</div>
									</div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 站长email </label>

										<div class="col-sm-9">
											<input type="text" name='email' id="form-field-1" placeholder="email" class="col-xs-10 col-sm-5" />
										</div>
									</div>

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 网站描述 </label>

										<div class="col-sm-9">
											<textarea id="form-field-11" rows ='5px' cols='45px' name='msg'></textarea>
										</div>
									</div>

									<div class="space-4"></div>

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-5">网站logo</label>

										<div class="col-sm-9">
											<div class="clearfix">
												<input type="file" name='logo'>
											</div>
										</div>
									</div>

									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 显示方式 </label>

										<div class="col-sm-9">
											<select class="col-xs-10 col-sm-5" id="form-field-select-1" name='list'>
											<option value="">&nbsp;</option>
											<option value="1">显示网站名称</option>
											<option value="2">显示网站logo</option>
										</select>
										</div>
									</div>
									

									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button class="btn btn-info" type="submit">
												<i class="icon-ok bigger-110"></i>
												提交
											</button>

											&nbsp; &nbsp; &nbsp;
											<button class="btn" type="reset">
												<i class="icon-undo bigger-110"></i>
												重置
											</button>
										</div>
									</div>
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
			</form>
@endsection